#include "loader.h"
#ifdef __cplusplus
extern "C" {
#endif
dtNavMesh * nav_LoadNavMeshFromFile(char const * path){
	char const * c_arg_path=(char const *)(void*)(path);
	dtNavMesh * c_out = LoadNavMeshFromFile(c_arg_path);
	dtNavMesh * wrap_out  = (dtNavMesh *)(void*)(c_out);
	return wrap_out;
}

bool nav_LoadTileCacheFromFile(char const * binPath,char const * objFilePath,dtNavMesh * m_navMesh,dtTileCache * m_tileCache,InputGeom * geo,MeshProcess * meshProcess,LinearAllocator * linearAllocator,FastLZCompressor * fastLzCompressor){
	char const * c_arg_binPath=(char const *)(void*)(binPath);
	char const * c_arg_objFilePath=(char const *)(void*)(objFilePath);
	dtNavMesh * c_arg_m_navMesh=(dtNavMesh *)(void*)(m_navMesh);
	dtTileCache * c_arg_m_tileCache=(dtTileCache *)(void*)(m_tileCache);
	InputGeom * c_arg_geo=(InputGeom *)(void*)(geo);
	MeshProcess * c_arg_meshProcess=(MeshProcess *)(void*)(meshProcess);
	LinearAllocator * c_arg_linearAllocator=(LinearAllocator *)(void*)(linearAllocator);
	FastLZCompressor * c_arg_fastLzCompressor=(FastLZCompressor *)(void*)(fastLzCompressor);
	bool c_out = LoadTileCacheFromFile(c_arg_binPath,c_arg_objFilePath,c_arg_m_navMesh,c_arg_m_tileCache,c_arg_geo,c_arg_meshProcess,c_arg_linearAllocator,c_arg_fastLzCompressor);
	bool wrap_out  = (c_out);
	return wrap_out;
}

#ifdef __cplusplus
}
#endif
